<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<div class="content">
<!-----------------------------------------内容开始--------------------------------------------------->
<div class="infoBox">
<form name="form" action="{:U('dodaren')}" method="post" onsubmit="return checkform();">
<input type="hidden" name="id" value="{$id}" />


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">

<tr>
<td width="11%" class="infoBoxTd">达人大类：</td>
<td colspan="2"><INPUT name="daname" value="{$daname}" class="formTitle" size="40">
</td>
</tr>

<tr>
<td width="11%" class="infoBoxTd">达人小类：</td>
<td colspan="2"><INPUT name="xiaoname" value="{$xiaoname}" class="formTitle" size="40">
</td>
</tr>


<tr>
<td class="infoBoxTd">图片展示：</td>
<td width="30%"><div class="upimg-box"><div id="fileQueue"></div>
<input id="file_upload" type="file" /><input name="tupian" type="hidden" value="{$tupian}" /></div></td>
<td width="50%"><img id="tupian" src="<neq name='tupian' value=''>{$tupian}<else/>__PUBLIC__/images/nopic.gif</neq>" width="150" height="150"/></td>
</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td align="left"><input type="submit" name="Button1" value="保存" class="formInput01" /></td>
</tr>
</table>
</form>
</div>
<!-----------------------------------------内容结束--------------------------------------------------->
</div>
<script language="javascript">

//图片上传
$("#file_upload").uploadify({
		'uploader'       : '__JS__/swf/uploadify.swf',
		'script'         : '__JS__/upload/uploadify.php',
		'cancelImg'      : '__JS__/upload/cancel.png',
		'folder'         : 'data/chenghao',
		'queueID'        : 'fileQueue',
		'sizeLimit'      :	2 * 1000 * 1024,
		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.
		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.
		'auto'           : true,
		'multi'          : false,	
		'onComplete':function(event,queueId,fileObj,response,data){
			$('input[name="tupian"]').val(response);
			$('#tupian').attr('src', response);
		}
});


</script>


    

<include file="Public:footer" />
